//
//  CWShortVideoCollection.swift
//  SwiftTest
//
//  Created by 陈旺 on 2022/1/25.
//

import UIKit

/// 中间的collectionView
class CWShortVideoCollection: UICollectionView {
    
    init(frame: CGRect) {
        let layout = CWShortVideoCollectionViewFlowLayout.init()
        super.init(frame: frame, collectionViewLayout: layout)
        configureSelf()
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
        configureSelf()
    }
    
    private func configureSelf() {
        backgroundColor = .black
        contentInsetAdjustmentBehavior = .never
        isPagingEnabled = true
    }
}
